<template>
    <div class="search-wrap">
        <div class="search-input">
            <div class="left">
                <icon-search/>
                <span>搜索</span>
            </div>
            <div class="search-keydown">
                <span>ctrl k</span>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>

</script>

<style lang="scss" scoped>
.search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;

    .search-input {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 180px;
        height: 36px;
        padding: 0 10px;
        cursor: pointer;
        border: 1px solid var(--color-border-2);
        border-radius: var(--border-radius-large);

        .left {
            display: flex;
            gap: 4px;
            font-size: 14px;
            color: var(--color-text-2);

            span {
                font-size: 12px;
                color: var(--color-text-2);
            }
        }
    }

    .search-keydown {
        display: flex;
        align-items: center;
        height: 20px;
        padding: 0 6px;
        border: 1px solid var(--color-border-2);
        border-radius: 4px;
        span {
            font-size: 12px;
            color: var(--color-text-2);
        }
    }
}
</style>
